package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lihang
 * @since 2021-03-18
 */
@Data
@ApiModel(value = "MainDataAirAirportUpdateReq对象", description = "")
public class MainDataAirAirportUpdateReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键Id不能为空")
    @ApiModelProperty(value = "主键id", required = true)
    private Long id;

    @NotNull(message = "城市id不能为空")
    @ApiModelProperty(value = "自定义Id")
    private Long customId;

    @NotBlank(message = "城市名称不能为空")
    @ApiModelProperty(value = "城市中文名称")
    private String customName;

    @NotBlank(message = "城市编码不能为空")
    @ApiModelProperty(value = "自定义编码")
    private String customCode;

    @NotBlank(message = "机场名称不能为空")
    @ApiModelProperty(value = "机场名称")
    private String airportName;

    @NotBlank(message = "机场三字码不能为空")
    @ApiModelProperty(value = "机场三字码")
    @Length(max = 3, message = "机场编码不能超过三位")
    private String airportCode;


}
